/*
 * t100.h
 *
 *  Created on: 2025年3月19日
 *      Author: Canon
 */

 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
 #include <stdbool.h>
 #include <string.h>
 
//MCU_SUB
#define ROM__BASE                   0x0U
#define SRAM__BASE                  0x00100000U
#define WDT0__BASE                  0x00800000U
#define TIMER__BASE                 0x00801000U
#define GPIO1__BASE                 0x00802000U
#define UART0__BASE                 0x00802000U
#define UART1__BASE                 0x00803000U
#define SPI__BASE                   0x00805000U
#define I2C2__BASE                  0x00806000U
#define I2C3__BASE                  0x00807000U
#define OTP__BASE                   0x00808000U
#define IOMUX__BASE                 0x00809000U
#define SYSCTL1__BASE               0x0080A000U
#define PVTCTL__BASE                0x0080B000U
#define RTC__BASE                   0x00810000U
#define CRG__BASE                   0x00811000U
#define I2C0__BASE                  0x00805000U
#define I2C1__BASE                  0x00813000U
#define GPIO0__BASE                 0x00814000U
#define LPC__BASE                   0x00815000U
#define SPACC__BASE                 0x00820000U
#define SDIO__BASE                  0x00830000U

//DMA_SUB
#define WDT1__BASE                  0x00800000U
#define DMA_CFG__BASE               0x00901000U

//HS_SUB
#define USB_CTRL_CFG__BASE          0x00B00000U
#define PCIE__BASE                  0x04B00000U
#define PCIE_CTRL_CFG___BASE        0x24B00000U
#define WDT2__BASE                  0x24F00000U
#define USB_CFG1__BASE              0x24F01000U
#define USB_CFG2__BASE              0x24F11000U
#define PCIE_CFG1__BASE             0x24F12000U
#define PCIE_CFG2__BASE             0x24F13000U

//NPU_SUB
#define NPU__BASE                   0x40B00000U

//SIZE
#define ROM__SIZE                   0x00100000U
#define SRAM__SIZE                  0x00100000U


int32_t dw_uart_0_write(const void *data, uint32_t len);
